import request from '@/plugin/axios'
import util from '@/libs/util.js'

export default {

	login (data) {
		return request({
			url: 'sysAdmin/login',
			headers: {},
			method: 'post',
			data,
		});
	},

	getMenuList (data) {
		return request({
			url: 'sysAdmin/getmenulist',
			headers: {},
			method: 'post',
			data,
		});
	},

	list (data) {
		return request({
			url: 'sysAdmin/list',
			headers: {},
			method: 'post',
			data,
		});
	},

	info (data) {
		return request({
			url: 'sysAdmin/get',
			headers: {},
			method: 'post',
			data,
		});
	},

	add (data) {
		return request({
			url: 'sysAdmin/add',
			headers: {},
			method: 'post',
			data,
		});
	},

	set (data) {

		return request({
			url: 'sysAdmin/edit',
			headers: {},
			method: 'post',
			data,
		});
	},

	getStatusOptions (data = {}) {
		return request({
			url: 'sysAdmin/getStatusOptions',
			headers: {},
			method: 'post',
			data,
		});
	},

	getOption (data = {}) {
		return request({
			url: 'sysAdmin/option',
			headers: {},
			method: 'post',
			data,
		});
	},

	resetGoogleAuthSecret (data = {}) {
		return request({
			url: 'sysAdmin/resetGoogleAuthSecret',
			headers: {},
			method: 'post',
			data,
		});
	},

};